#include<bits/stdc++.h>
using namespace std;
int n,r[100005],cnt,ans;
bool can[100005],gothrough = 0;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i = 1;i<=n;i++){
        cin>>r[i];
    }
    sort(r+1,r+n+1);
    memset(can,1,sizeof(can));
    while(true){
        int i=1,j=2;
        for(;i<n;i++){
            if(i==0)continue;
            while(r[j]<=r[i]||can[j]==0)j++;
            r[i]=0;
            can[j]=0;
            j++;
            cnt++;
        }
        for(int k = 1;k<=n;k++){
            if(can[k]==1){
                gothrough = 1;
            }
            break;
        }
        if(gothrough==0)break;
    }
    for(int i = 1;i<=n;i++){
        if(r[i]!=0)ans++;
    }
    cout<<ans;
    return 0;
}
